<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>系统设置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__ADMIN__css/style.css"  media="all">
  <link rel="stylesheet" href="__ADMIN__layui/css/layui.css"  media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<div class="pad-20">
  <fieldset class="layui-elem-field layui-field-title">
  <legend>网站配置</legend>
  </fieldset>
  <form class="layui-form" action="" method="post" enctype="multipart/form-data">
    <div class="layui-tab">
      <ul class="layui-tab-title">
        <li class="layui-this">基本信息</li>
        <li>营销信息</li>
        <li>营销客服</li>
        <li>第三方代码</li>
      </ul>
      <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
          <!--基本信息-->
          <div class="layui-form-item">
            <label class="layui-form-label">网站名称</label>
            <div class="layui-input-block">
              <input class="layui-input cmsName" lay-verify="required" placeholder="请输入网站名称" name="data[cmsname]" value="{$info['cmsname']}" type="text">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">附件大小</label>
            <div class="layui-input-inline" style="width:600px;">
              <input class="layui-input" placeholder="请输入允许上传附件大小(单位：KB)" name="data[appendage_size]" value="{$info['appendage_size']}" type="text">
            </div>
            <div class="layui-form-mid layui-word-aux">允许上传附件大小(单位：KB)</div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">附件类型</label>
            <div class="layui-input-inline" style="width:600px;">
              <input class="layui-input cmsName" placeholder="请输入允许上传附件类型" name="data[appendage_type]" value="{$info['appendage_type']}" type="text">
            </div>
            <div class="layui-form-mid layui-word-aux">允许上传附件类型 例如：jpg|png|gif|jpeg</div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">网站关键字</label>
            <div class="layui-input-block">
              <input class="layui-input keywords" placeholder="请输入默认关键字" name="data[keywords]" value="{$info['keywords']}" type="text">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">网站描述</label>
            <div class="layui-input-block">
              <textarea placeholder="请输入网站描述" class="layui-textarea description" name="data[description]">{$info['description']}</textarea>
            </div>
          </div>

          <div class="layui-form-item">
            <label class="layui-form-label">版权信息</label>
            <div class="layui-input-block">
              <textarea class="layui-textarea" id="LAY_demo1" style="display: none" name="data[powerby]">{$info['powerby']}</textarea>
            </div>
          </div>
          <!--基本信息-->
        </div>
        <div class="layui-tab-item">
          <!--营销信息-->
          <div class="layui-form-item">
            <label class="layui-form-label">咨询电话</label>
            <div class="layui-input-block">
              <input class="layui-input" placeholder="请输入咨询电话" name="data[telphone]" value="{$info['telphone']}" type="text">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">联系邮箱</label>
            <div class="layui-input-block">
              <input class="layui-input" placeholder="请输入联系邮箱" name="data[email]" value="{$info['email']}" type="text">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">联系地址</label>
            <div class="layui-input-block">
              <input class="layui-input" placeholder="请输入联系地址" name="data[address]" value="{$info['address']}" type="text">
            </div>
          </div>
          <!--营销信息-->
        </div>
        <div class="layui-tab-item">
          <!--营销客服-->
          <div class="layui-form-item">
            <label class="layui-form-label">客服开关</label>
            <div class="layui-input-block">
              <input <eq name="info['is_qq']" value="1">checked=""</eq> name="data[is_qq]" lay-skin="switch" lay-filter="switchTest" lay-text="开|关" type="checkbox">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">客服名称</label>
            <div class="layui-input-block">
              <input class="layui-input" placeholder="请输入客服名称，以半角逗号,隔开" name="data[qq_tit]" value="{$info['qq_tit']}" type="text">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">客服号码</label>
            <div class="layui-input-block">
              <input class="layui-input" placeholder="请输入客服号码，以半角逗号,隔开" name="data[qq_num]" value="{$info['qq_num']}" type="text">
            </div>
          </div>
          <!--营销客服-->
        </div>
        <div class="layui-tab-item">
          <!--第三方代码-->
          <div class="layui-form-item">
            <label class="layui-form-label">头部代码</label>
            <div class="layui-input-block">
              <textarea placeholder="代码将会放到</head> 标签之前" class="layui-textarea description" name="data[headcode]">{$info['headcode']}</textarea>
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">底部代码</label>
            <div class="layui-input-block">
              <textarea placeholder="代码将会放到</body> 标签之前" class="layui-textarea description" name="data[bodycode]">{$info['bodycode']}</textarea>
            </div>
          </div>
          <div class="layui-input-block" style="color:#ff0000;">
            注释：PHP5.5及以上版本支持
          </div>
          <!--第三方代码-->
        </div>
      </div>
    <div class="layui-form-item">
      <div class="layui-input-block" style="margin-left:120px;">
        <button class="layui-btn" lay-submit="" lay-filter="systemParameter">立即提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
  </form>
</div>
<div class="yzui-filler"></div>
<script src="__ADMIN__js/jquery-1.9.1.min.js" charset="utf-8"></script>
<script src="__ADMIN__layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script type="text/javascript">
  layui.use(['form', 'layedit', 'laydate','element'], function(){
    var form = layui.form
    ,layer = layui.layer
    ,element = layui.element
    ,layedit = layui.layedit;

    //构建一个默认的编辑器
    //自定义工具栏
    layedit.build('LAY_demo1', {
      tool: [ 'link', 'unlink' ]
      ,height: 280
    });

  });
</script>
</body>
</html>
